package com.xgimi.open.skill.datamanager.service.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xgimi.open.skill.datamanager.service.response.constants.DateConstant;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author coderzpw.zhang
 * @version 1.0
 * @description 描述
 * @date 2023/2/7 19:59
 */
@Data
public class SkillRespDTO implements Serializable {
    private static final long serialVersionUID = -6966334094011188041L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * icon图片url地址
     */
    private String iconPic;

    /**
     * 技能名称
     */
    private String skillName;

    /**
     * 项目组id
     */
    private Long projectGroup;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = DateConstant.PATTERN)
    @JsonFormat(pattern = DateConstant.PATTERN, timezone = "GMT+8")
    private Date createdAt;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = DateConstant.PATTERN)
    @JsonFormat(pattern = DateConstant.PATTERN, timezone = "GMT+8")
    private Date updatedAt;

    /**
     * 技能描述
     */
    private String skillDesc;

    /**
     * 是否置顶
     */
    private Integer top;
    /**
     * 置顶时间
     */
    @DateTimeFormat(pattern = DateConstant.PATTERN)
    @JsonFormat(pattern = DateConstant.PATTERN, timezone = "GMT+8")
    private Date topTime;

    /**
     * 测试版本id
     */
    private Long testVersionId;
    /**
     * business业务id
     */
    private String businessId;

    /**
     * 数据版本
     */
    private Integer updateVersion;

    /**
     * 是否已发布
     */
    private Integer published;
}
